const mongoose = require('mongoose');
const categorySchema = new mongoose.Schema({
    categoryName:{
        type: String
    },
    categoryId:{
        type: String
    },
    parentId:{
        type: String
    },
    created_at: {
        type: Date,
        default: Date.now,
    },
    updated_at: {
        type: Date,
        default: Date.now,
    },
    status: {
        type: Number,
        default: 0,
        comment:'1/启用 0/禁用'
    }
});

const Category = mongoose.model('Category', categorySchema);

module.exports = Category;